package com.yloveg.base;
public class MyException extends Exception {
    /**
    *
    */
    private static final long serialVersionUID = 3627645256433923779L;
    private String code;
    private String msg;

    public MyException(String code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public MyException(String code, String msg, Throwable cause) {
        super(msg, cause);
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
